跳板机jumpserver
{
    
0.3.2问题记录
{
    
    
    
    在添加用户的时候，发生邮件失败
        STARTTLS extension not supported by server.
    
    在配置文件中tsl支持
    
        
    
    
    
    在其他terminal可以登录的情况下 web terminal 登陆失败
    Connection Reset By Peer
    1、 修改在 jlog/views.py中 
    
    253 行
    if re.compile(r'\[\?1049', re.X).search(msg.decode('utf-8', 'replace')):  成
    ---
    if re.compile(r'\[\?1049', re.X).search(str(msg).decode('utf-8', 'replace')):
    
    267 行
    self.log[str(time.time() - self.recoderStartTime)] = msg.decode('utf-8', 'replace') 成
    ---
    self.log[str(time.time() - self.recoderStartTime)] = str(msg).decode('utf-8', 'replace')
    
    2、 修改 vim run_server.py
    
    修改369、370行内容
    jsondata.get('data').get('resize').get('cols', 80),
    jsondata.get('data').get('resize').get('rows', 24)
    ---
    int(jsondata.get('data').get('resize').get('cols', 80)),
    int(jsondata.get('data').get('resize').get('rows', 24))
    
    
    3、 修改 webterminal.js
    
        3.1 在61行中添加 if(rowHeight == null || colWidth == null)  throw " is null";
    
            try {
            rowHeight = localStorage.getItem('term-row');
            colWidth = localStorage.getItem('term-col');
        }
        -----------------------
        
            try {
            rowHeight = localStorage.getItem('term-row');
            colWidth = localStorage.getItem('term-col');
            if(rowHeight == null || colWidth == null)  throw " is null";
        }
        
        3.2 134 添加一个错误捕获

            var col = $('#term-col').val();
            var row = $('#term-row').val();
        ------------------
        
            var col,row;
            try{
                col = $('#term-col').val();
                row = $('#term-row').val();
                if(col == "" || row == "" ) throw " no value for col or row";
        
            }catch(err)
            {
                row = 50;
                col = 200;
        
            }
    
}
    
    
    
}